﻿using LuckyShell.ShellValues;

namespace LuckyShell.ShellOrders;

public class SetOrder(IdentifierValue id, ShellValue value) : ShellOrder
{
    public void Run(ref VariateManager manager)
    {
        var o = Value.GetValue(ref manager);
        manager.SetValue(Identifier, o);
    }

    private IdentifierValue Identifier { get; set; } = id;
    private ShellValue Value { get; set; } = value;
}